//
//  SessionItem.m
//  ChangChat
//
//  Created by Cocoa on 2019/9/4.
//  Copyright © 2019 yibai. All rights reserved.
//

#import "SessionItem.h"
#import <LKDBHelper/LKDBHelper.h>
@implementation SessionItem

+ (NSString *)getPrimaryKey {
    return @"group_id";
}

- (BOOL)isSingleFriendChat {
    
    for (FriendItem *obj in kUsermanager.friendArray) {
        if ([obj.group_id isEqualToString:self.group_id] == YES) {
            return YES;
        }
    }
    return NO;
}

@end
